<template>
  <view class="my-search-container" :style="{ backgroundColor: bgC }">
    <view
      class="my-search-box"
      :style="{ borderRadius: borRad, backgroundColor: borBgc }"
    >
      <uni-icons type="search" size="17"></uni-icons>
      <text class="placeholder" :style="{ text: text }">{{ text }}</text>
    </view>
  </view>
</template>
<script>
export default {
  props: {
    text: {
      type: String,
      default: "搜索你要找的商品",
    },
    bgC: {
      type: String,
      default: "#f1f1f2",
    },
    borRad: {
      type: String,
      default: "0rpx",
    },
    borBgc: {
      type: String,
      default: "#f1f1f2",
    },
  },
};
</script>

<style scoped lang="scss">
.my-search-container {
  // border-radius: ;
  // background-color: #f1f1f2;
  height: 100rpx;
  padding: 0 20rpx;
  display: flex;
  align-items: center;
}

.my-search-box {
  height: 72rpx;
  background-color: #ffffff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  .placeholder {
    font-size: 30rpx;
    margin-left: 10rpx;
    color: #c4c4c4;
  }
}
</style>